package com.ljj.demo;

public class Zi extends Fu {
    String name = "子类名称";

    public void showName() {
        String name = "局部名称";
        System.out.println(name); // 局部名称
    }

    @Override
    public void print1() {
        System.out.println("==子类的print1方法执行了=");
    }

    public void showMethod() {
        print1(); // 子类的
        //调用父类的
        super.print1();
        System.out.println(super.name);
    }
}
